{extend name="$_admin_layout"}

{block name="tpl_vars"}
    {assign name="page_title" value="系统设置" /}
{/block}

{block name="main-content"}
    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <?php foreach (config('ADMIN_CONFIG_GROUP_LIST') as $key => $title): ?>
                <?php if ($group == $key): ?>
                    <li class="active"><a href="#">{$title}</a></li>
                <?php else: ?>
                    <li><a href="{:$_controller->url('settings', array('group' => $key))}">{$title}</a></li>
                <?php endif; ?>
            <?php endforeach; ?>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active">
                <form id="config_form" class="form form-manager">
                    <div class="row">
                        <div class="col-sm-12">
                            <?php foreach($config_list as $config_info): ?>
                                {:helper('admin/form')->render_group('config[' . $config_info['name'] . ']', $config_info['value'], $config_info['control'], $config_info['title'], $config_info['help'])}
                            <?php endforeach; ?>
                            {:helper('admin/form')->render_submit_and_cancel(request()->url(), request()->url())}
                       </div>

                       <input type="hidden" name="_fx[][a][foo]" value=''
                    </div>
                </form>
            </div>
        </div>
    </div>
{/block}